﻿package mortal.game.view.active11
{
    import com.mui.controls.*;
    import com.mui.utils.*;
    import mortal.game.resource.*;
    import mortal.game.resource.info.item.*;
    import mortal.game.utils.*;
    import mortal.game.view.common.*;
    import mortal.game.view.common.item.*;
    import mortal.game.view.firstReCharge.*;

    public class Active11PanelLogin extends GSprite
    {
        protected var _bg:GImageBitmap;

        public function Active11PanelLogin()
        {
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            var _loc_2:Array = null;
            var _loc_3:Array = null;
            var _loc_4:ItemData = null;
            var _loc_5:int = 0;
            var _loc_6:int = 0;
            var _loc_7:EffectItem = null;
            super.createDisposedChildrenImpl();
            this._bg = UIFactory.gImageBitmap(ImagesConst.Active11PanelLogin, 0, 0, this);
            var _loc_1:* = ItemConfig.instance.getConfig(120502008) as ItemGiftBagInfo;
            if (_loc_1)
            {
                _loc_2 = _loc_1.itemList.split("&");
                _loc_5 = _loc_2.length;
                while (_loc_6 < _loc_5)
                {
                    
                    if (_loc_2[_loc_6])
                    {
                        _loc_3 = _loc_2[_loc_6].split("#");
                        _loc_4 = new ItemData(int(_loc_3[1]));
                        if (_loc_4.itemInfo && ItemsUtil.isFitCarrer(_loc_4))
                        {
                            _loc_7 = UICompomentPool.getUICompoment(EffectItem);
                            _loc_7.setItemStyle(ItemStyleConst.Big, ImagesConst.RewardItemBigBg, 4, 4);
                            _loc_7.isShowLock = true;
                            _loc_7.itemData = _loc_4;
                            _loc_7.amount = _loc_3[2];
                            _loc_7.y = 340;
                            _loc_7.x = 160 + 90 * _loc_6;
                            this.addChild(_loc_7);
                            this.pushUIToDisposeVec(_loc_7);
                        }
                    }
                    _loc_6++;
                }
            }
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            this._bg.dispose();
            this._bg = null;
            super.disposeImpl();
            return;
        }// end function

    }
}
